<?php
// +----------------------------------------------------------------------
// | Author: 林子彦
// +----------------------------------------------------------------------

namespace Common\Behavior;

use Think\Behavior;
use Think\Hook;

defined('THINK_PATH') or exit();

// 初始化钩子信息
class InitHookBehavior extends Behavior {

    // 行为扩展的执行入口必须是run
    public function run(&$content) {
      
        $key="adminUMEditor";
        $class = "Plugins\\UMEditor\\UMEditorAddon";
	Hook::add($key,array($class));
        
         //集成ue
        $key = "adminUEditor";
        $class = "Plugins\\UEditor\\UEditorAddon";
        Hook::add($key, array($class));

    }
  
}
